home *** CD-ROM | disk | FTP | other *** search
/ Games of Daze / Infomagic - Games of Daze (Summer 1995) (Disc 1 of 2).iso / x2ftp / msdos / libs / knowhow4 / vector.h < prev    next >
C/C++ Source or Header  |  1994-11-04  |  3KB  |  95 lines

  1. #ifndef __VECTOR_H_
  2. #define __VECTOR_H_
  3.  
  4. /*  VECTOR 1.0 - The vector images Editor.
  5.     (C) Stepan S. Vartanov, 1994.
  6.     Contacts:
  7.  
  8.  
  9.         ( D E A L E R S   I N V I T E D )
  10.  
  11.     ATTENTION !!! This product needs the KNOW-HOW 4.x interface library
  12.                   and (desirable) KNOW-HOW 1.x PRINT MANAGER SYSTEM
  13. */
  14. #include "khoopic.h"     // khoopic.h or blkoopic.h could be used
  15. #include "ask_hot.h"  // Button which may be hidden and macros append
  16.                       // function
  17. #include "icon.h"     // About cartoon
  18. #include "board.h"    // About system
  19.  
  20.  
  21. #include "prn_form.h"    // Printer setup
  22. #include "bufsetup.h"
  23. #include "appkit.h"      // ApplicationKit
  24. #include "write.h"       // write.h or blkwrite.h could be used
  25. #include "print.h"       // Print manager
  26.  
  27. #include "b&w.h"         // PCX color <-> B&W convertor
  28. #include "help.h"        // Help system
  29.  
  30. #include "bllmenu.h"     // Line (main) menu
  31. #include "blkmenu.h"
  32.  
  33. #include "blfsys.h"      // File system
  34. #include "window.h"
  35.  
  36. enum { AC_FILE_MENU = 101, // items of the line menu
  37.        AC_BUFFER_MENU, AC_SCRIPT_MENU, AC_PRINT_MENU,
  38.  
  39.        AC_NEW, AC_OPEN, AC_SAVE, AC_SAVE_AS_PCX,  // go here from "file_menu"
  40.        AC_SAVE_AS_PCX_BW, AC_ABOUT,
  41.  
  42.        AC_BUFFER,   // Go here from Options
  43.  
  44.        AC_SCRIPT_PLAY, AC_SCRIPT_RECORD, // go here from "script_menu"
  45.        AC_SCRIPT_END, AC_MACROS_KEEP,
  46.  
  47.        AC_PROGRAM_EDIT,  AC_PROGRAM_RUN, // Program editor and interpreter
  48.        AC_PROGRAM_SAVE_AND_RUN,
  49.  
  50.        AC_ASK_EXIT, // Before exit ask Y/N
  51.  
  52.        AC_PRINT,    // go here from "form" (print setup)
  53.  
  54.        AC_MOVE_APPL, AC_RESIZE_APPL,  // If you want to move / resize base
  55.  
  56.        AC_FILE // After File system was executed
  57.     };
  58.  
  59. class Vector : public ApplicationKit
  60.     {
  61.     protected:
  62.         int DATA_FILE; // The way we come to the File system (f.e. from Open
  63.                        // or Save).
  64.  
  65.         Window* w1;                   // System base window
  66.         BlockLineMenu* menu;          // Main menu
  67.         BlockMenu* file_menu;         // New, Open, Save...
  68.         BlockFile* file_sys;          // List of files
  69.         BlockMenu* script_menu;       // Script Manager
  70.         PrintManager* print;          // Print Manager
  71.         GrafBuffer* buffer;           // Buffer of Print and PCX managers
  72.         Form* form;                   // Printer setup
  73.         BufferSetup* setup;           // Buffer setup form
  74.         Write* editor;                // Text (program) editor
  75.         KH_OOPic* vector;             // Picture draw window.
  76.     Button* OK_button;
  77.  
  78.     public:
  79.         Vector(char* fileName,        // File for swapping
  80.                char* buf_name,        // Name of Print/PCX tmp. swap file
  81.                int obj_number = 0,    // Number in upper level container
  82.                 int step = 1);        // Step in objects numeration.
  83.         virtual ~Vector();            // Destructor
  84.         void reload();
  85.         virtual void show();          // Show some objects
  86. //      virtual void rearrange();     // Used if resize facility is available
  87.         virtual int application(int n);  // User-defined functions
  88.         void prepare_files();         // Before file_system
  89.         virtual int active() { return w1->active(); }  // Is visible?
  90.         void to_buffer();
  91.  
  92.     friend class KH_OOPic;
  93.     };
  94.  
  95. #endif __VECTOR_H_